const sequelize = require("sequelize");
const db = require("../../../database");

const articleType = db.define('articleTypes', {
    id: {
        type: sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        allowNull: false,
        field: "id",
    },
    name: {
        type: sequelize.STRING,
        allowNull: false,
        field: "name"
    },
    isdeleted: {
        type: sequelize.BOOLEAN,
        allowNull: false,
        defaultValue: false,
        field: "isdeleted"
    },
}, { timestamp: false });
(async () => {
    await db.sync({ alert: true })
})()

module.exports = articleType;